<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditAuditoriaClienteTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditAuditoriaClienteLabel_id}" for="id" />
                    <h:inputText id="id" value="#{auditoriaClienteController.selected.id}" title="#{bundle.EditAuditoriaClienteTitle_id}" required="true" requiredMessage="#{bundle.EditAuditoriaClienteRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaClienteLabel_telefonoAnterior}" for="telefonoAnterior" />
                    <h:inputText id="telefonoAnterior" value="#{auditoriaClienteController.selected.telefonoAnterior}" title="#{bundle.EditAuditoriaClienteTitle_telefonoAnterior}" required="true" requiredMessage="#{bundle.EditAuditoriaClienteRequiredMessage_telefonoAnterior}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaClienteLabel_telefonoPosterior}" for="telefonoPosterior" />
                    <h:inputText id="telefonoPosterior" value="#{auditoriaClienteController.selected.telefonoPosterior}" title="#{bundle.EditAuditoriaClienteTitle_telefonoPosterior}" required="true" requiredMessage="#{bundle.EditAuditoriaClienteRequiredMessage_telefonoPosterior}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaClienteLabel_emailAnterior}" for="emailAnterior" />
                    <h:inputText id="emailAnterior" value="#{auditoriaClienteController.selected.emailAnterior}" title="#{bundle.EditAuditoriaClienteTitle_emailAnterior}" required="true" requiredMessage="#{bundle.EditAuditoriaClienteRequiredMessage_emailAnterior}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaClienteLabel_emailPosterior}" for="emailPosterior" />
                    <h:inputText id="emailPosterior" value="#{auditoriaClienteController.selected.emailPosterior}" title="#{bundle.EditAuditoriaClienteTitle_emailPosterior}" required="true" requiredMessage="#{bundle.EditAuditoriaClienteRequiredMessage_emailPosterior}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaClienteLabel_motivo}" for="motivo" />
                    <h:inputText id="motivo" value="#{auditoriaClienteController.selected.motivo}" title="#{bundle.EditAuditoriaClienteTitle_motivo}" required="true" requiredMessage="#{bundle.EditAuditoriaClienteRequiredMessage_motivo}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaClienteLabel_cliente}" for="cliente" />
                    <h:selectOneMenu id="cliente" value="#{auditoriaClienteController.selected.cliente}" title="#{bundle.EditAuditoriaClienteTitle_cliente}" required="true" requiredMessage="#{bundle.EditAuditoriaClienteRequiredMessage_cliente}">
                        <f:selectItems value="#{clienteController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{auditoriaClienteController.update}" value="#{bundle.EditAuditoriaClienteSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditAuditoriaClienteViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{auditoriaClienteController.prepareList}" value="#{bundle.EditAuditoriaClienteShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditAuditoriaClienteIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
